<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
        <script>

               /*  var arr=['h','word','JavaScript'];
                console.log(arr.every(function(arr){
                    return arr.length>1;  //条件数组当中的每个元素的长度大于0 返回true
                                          //只要有一个不满足条件 则放回false(此结果为false)
                }));
                 */

                 /* var arr=['HS','Qord','JavaScript']
                 console.log(arr.find(function(arr){
                     return arr.toLowerCase()=== arr
                 })); */

               /*   var arr=['WQ','word','JavaScript']
                 console.log(arr.findIndex(function(arr){
                     return arr.toLowerCase() === arr;
                 })); */

               
              /*    function sum(arr){
                         return arr.reduce(function(x,y){
                             return x+y;
                         })
                         return sum;
                     }
                 x
                   console.log(sum([1,2,3,4,5]));  
                */


      

        </script>
</body>
</html>